package com.huluobo.a2207kotlindouyin.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2207kotlindouyin.R
import com.huluobo.a2207kotlindouyin.utls.ImageUtils
import com.huluobo.base.bean.GoodsBean

/**
 *  Created by LC on 2024/12/3.
 */
class ShopAdapter : BaseQuickAdapter<GoodsBean, BaseViewHolder>(R.layout.item_shop) {
    override fun convert(holder: BaseViewHolder, item: GoodsBean) {
        ImageUtils.loadImage(context, item.goods_default_icon, holder.getView(R.id.item_shop_goods_icon_iv))
        holder.setText(R.id.item_shop_goods_desc_tv, item.goods_desc)
        holder.setText(R.id.item_shop_goods_price_tv, "${item.goods_default_price}元")
    }
}